import axios from "axios";
import instance from "@/utils/axios";
export default {
  getList(params) {
    return axios.get("/goodList", { params });
  },
  checkphone1(data) {
    return instance.request({
      url: "/api/userlogin/checkphone1.do",
      method: "get",
      params: data,
    });
  },
  sendlogin(data) {
    return instance.request({
      url: "/api/smslog/sendlogin.do",
      method: "get",
      params: data,
    });
  },
  register(data) {
    return instance.request({
      url: "/api/userlogin/register.do",
      method: "post",
      data,
    });
  },
  getout(data) {
    return instance.request({
      url: "/api/userlogin/loginout.do",
      method: "get",
      headers: { "bbtoken": data },
      // params: data,
    });
  },
};
